<?php
//if not a real page (nobody called us here, just user trying to hack
if ((!isset($_SESSION['realpage']))
 || ($_SESSION['realpage'] == false))
 {
 	require './hack.php';
 	die(" ");
 }

error_reporting(E_ALL);

/**
 * untitledModel - class.RelationType.php
 *
 * $Id$
 *
 * This file is part of untitledModel.
 *
 * Automatically generated on 16.11.2011, 20:10:36 with ArgoUML PHP module
 * (last revised $Date: 2010-01-12 20:14:42 +0100 (Tue, 12 Jan 2010) $)
 *
 * @author firstname and lastname of author, <author@example.org>
 */

if (0 > version_compare(PHP_VERSION, '5')) {
	die('This file was generated for PHP 5');
}

/* user defined includes */
// section 127-0-0-1-443859a7:133ad0c00d0:-8000:0000000000000878-includes begin
// section 127-0-0-1-443859a7:133ad0c00d0:-8000:0000000000000878-includes end

/* user defined constants */
// section 127-0-0-1-443859a7:133ad0c00d0:-8000:0000000000000878-constants begin
// section 127-0-0-1-443859a7:133ad0c00d0:-8000:0000000000000878-constants end

/**
 * Short description of class RelationType
 *
 * @access public
 * @author firstname and lastname of author, <author@example.org>
 */
class RelationType
{
	
	// --- ATTRIBUTES ---

	public $type = null;
	
	public $gid = null;
	
	public $uid = null;

	// --- OPERATIONS ---
	
	public static function factorRelation($sqlArr)
	{
		$obj = new RelationType();     
		
		$obj->gid    = $sqlArr['gid'];	  	  //meta
		$obj->uid 	 = $sqlArr['uid']; 	//meta
		$obj->type	 = $sqlArr['type'];	
				
		return  $obj;	
	}
	
} /* end of class RelationType */

?>